package com.yiwyn.flowdemo.BusinessNode.impl.leave;

import com.yiwyn.flowdemo.BusinessNode.BusinessHandlerRouter;
import com.yiwyn.flowdemo.flow.base.FlowContext;
import com.yiwyn.flowdemo.flow.entity.BusinessHandler;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class StartBusinessHandler extends BusinessHandler {

    public StartBusinessHandler() {
        BusinessHandlerRouter.addBusinessHandler("startBusinessHandler", this);
    }

    @Override
    public void startHandle() {
        log.info("开始进行请假审批");
    }

    @Override
    public FlowContext completeHandle(FlowContext flowContext) {
        return null;
    }
}
